using UnityEngine;
using System.Collections;

public class ChangeBodyState : CharacterAction
{
	public BodyState state;

	BodyState originalState;

	public override void OnActionEnter(Character character)
	{
		originalState = state;
		character.bodyState = state;
	}
	
	/** override to implement, and unregister event hanlders here*/
	public override void OnActionExit(Character character)
	{ 
		character.bodyState = originalState;
	}

}

